import request from '@/config/axios'

// 护理级别 VO
export interface Nurse_levelVO {
  id: number // 主键id
  levelName: string // 护理级别名称
  levelStatus: number // 1:启用  2 停用
}

// 护理级别 API
export const Nurse_levelApi = {
  // 查询护理级别分页
  getNurse_levelPage: async (params: any) => {
    return await request.get({ url: `/yyzx/nurse_level/page`, params })
  },

  // 查询护理级别详情
  getNurse_level: async (id: number) => {
    return await request.get({ url: `/yyzx/nurse_level/get?id=` + id })
  },

  // 新增护理级别
  createNurse_level: async (data: Nurse_levelVO) => {
    return await request.post({ url: `/yyzx/nurse_level/create`, data })
  },

  // 修改护理级别
  updateNurse_level: async (data: Nurse_levelVO) => {
    return await request.put({ url: `/yyzx/nurse_level/update`, data })
  },

  // 删除护理级别
  deleteNurse_level: async (id: number) => {
    return await request.delete({ url: `/yyzx/nurse_level/delete?id=` + id })
  },

  // 导出护理级别 Excel
  exportNurse_level: async (params) => {
    return await request.download({ url: `/yyzx/nurse_level/export-excel`, params })
  },
}